#pragma once
#include "Widget.h"

class Dialog : public Widget
{
public:
	Dialog(HelpHandler* h, Topic t = NO_HELP_TOPIC);
	virtual void HandleHelp();

};

Dialog::Dialog(HelpHandler* h, Topic t)
	: Widget(0)
{
	SetHandler(h, t);
}

void Dialog::HandleHelp()
{
	if (HasHelp()) {
		std::cout << "Dialog has help info\n";
	} else {
		HelpHandler::HandleHelp();
	}
}
